-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for post json body (fix #545) #557
base: master
Are you sure you want to change the base?
Conversation
This PR needs unit tests to test the added functionality before it can be accepted. |
Added one unit test, for data check. But multi input with same name now will only preserve the last one's value |
|
||
if (options.data) { | ||
var optionsData = $.isFunction(options.data) ? options.data(a) : options.data; | ||
optionsData = $.isFunction(options.data) ? options.data(a) : options.data; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the var
when declaring optionsData
?
Add support for post json body
Not enough time for adding unit test, @kevindb if you have time, you may add a few